
<template>
  <div class="bread_wrap" v-if="$store.state.navFlag">
      <el-breadcrumb separator="/">
         <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
         <el-breadcrumb-item v-for="(item,index) in $store.state.breadList" :key="index" :to="{ path: item.path }">
         {{item.title}}</el-breadcrumb-item>
        
    </el-breadcrumb>
  </div>
</template>

<script lang="ts">
import {defineComponent} from 'vue'
export default defineComponent({
  data(){
    return{

    }
  }
})
</script>

<style lang="less">
    .bread_wrap{
      height: 50px;
      margin: 20px auto;
      background: white;
      line-height: 50px;
      font-size: 20px;
    }
    .el-breadcrumb{
        line-height: 50px;
        height: 50px;
        padding: 0 20px; 
        box-sizing: border-box;
      .el-breadcrumb__item{
        
          
           line-height: 50px;
            height: 50px;
      }
    }
</style>